package com.fz.us.oa.core.entity.com;

import com.fz.us.admin.company.entity.BaseFlowEntity;

import javax.persistence.*;

/**
 * Created by ZhuChunXiao on 2017/5/24.
 * 转正申请
 */
@Entity
@Table(name="ec_formal")
public class Formal extends BaseFlowEntity {
    private static final long serialVersionUID = -6178974094319943005L;
    /**
     * 人事信息表
     */
    private PersonnelInfo personnelInfo;
    /**
     * 转正意见
     */
    private String opinion;
    /**
     * 异动管理
     */
    private AllChange allChange;

    @ManyToOne(fetch = FetchType.LAZY)
    public PersonnelInfo getPersonnelInfo() {
        return personnelInfo;
    }

    public void setPersonnelInfo(PersonnelInfo personnelInfo) {
        this.personnelInfo = personnelInfo;
    }

    public String getOpinion() {
        return opinion;
    }

    public void setOpinion(String opinion) {
        this.opinion = opinion;
    }

    @OneToOne(fetch = FetchType.LAZY)
    public AllChange getAllChange() {
        return allChange;
    }

    public void setAllChange(AllChange allChange) {
        this.allChange = allChange;
    }
}
